package com.youhome.response;

/**
 * Created by chen365 on 2017/10/18
 */
public enum ResultCode {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),
    PHONE_ERROR(2, "手机号码不正确"),
    PHONE_NOT_REGISTERED(3, "手机号码未注册"),
    EMPTY_SMS_VALIDATE_CODE(4, "验证码不能为空"),
    EMPTY_MSG_ID(5, "短信ID不能为空"),
    ERROR_VALIDATE_CODE(6, "短信验证失败"),
    UNAUTHORIZED(7, "没有权限"),
    EMPTY_PARAMETER(8, "参数不能为空"),
    ERROR_KEYWORD_LENGTH_THREE(9, "关键字起码要有3个字符。"),
    HOUSE_ILLEGALITY_ZIP_CODE(10, "非法的邮编地址。"),
    HOUSE_ADDRESS_LENGTH_SHORTAGE(11, "地址搜索必须要三个字母以上。"),
    HOUSE_CITY_LENGTH_SHORTAGE(12, "城市搜索必须要三个字母以上。"),
    UNSUPPORTED_SEARCH_TYPE(13, "不支持的搜索类型。"),
    EMPTY_NAME(14, "姓名不能为空"),
    EMPTY_PHOTO(15, "手机号不能为"),
    LAND_EXPIRATION(16, "登陆过期,请重新登陆"),
    ERROR_EMAIL_FORMAT(17, "邮箱格式错误。"),
    DATA_DOES_NOT_EXIST(18, "数据不存在"),
    HOUSE_NOT_EXIST(19, "房源不存在"),
    CLIENT_NOT_EXIST(20, "客户不存在"),
    HAVE_RECOMMENDED(21, "已经推荐"),
    ALREADY_DELETED(22, "已经删除"),
    ERROR_PARAMETER(23, "参数错误"),
    EMPTY_STATUS(24, "状态不能为空"),
    EMPTY_BASE64_DATA(25, "BASE64 数据不能为空"),
    EMPTY_IMG_SUFFIX(26, "图片后辍名不能为空");


    /**
     * 状态
     */
    private Integer status;

    /**
     * 提示信息
     */
    private String msg;

    ResultCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
